<template>
  <div class="list-wrapper">
    <div class="list-header">
      <img :src="url" alt="">
      <h5>{{title}}</h5>
    </div>
    <p class="list-body">{{context}}</p>
  </div>
</template>

<script>
  export default {
    name: "List",
    props: {
      title: String,
      url: String,
      context: String
    }
  };
</script>

<style lang="less">
  .list-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    .list-header {
      width: 200px;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;

      img {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        margin-bottom: 10px;
      }
    }
    .list-body {
      text-align: left;
      width: 500px;
      line-height: 1.8;
    }
  }
  @media screen and (max-width: 768px) {
    .list-wrapper {
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      height: unset;
      padding: 15px;
      .list-header {
        width: 200px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        margin-bottom: 10px;

        img {
          width: 80px;
          height: 80px;
          border-radius: 50%;
          margin-bottom: 10px;
        }
      }
      .list-body {
        text-align: left;
        width: unset;
        line-height: 1.8;
      }
    }
  }
</style>
